<template>
  <div class="card-wrap flex-column justify-end card-padding">
    <el-form :model="form" ref="form" label-width="100px">
      <div class="card-title-wrap">
        <span>工单方案</span>
        <span></span>
      </div>
      <el-radio-group v-model="form.workOrderScheme" style="margin-left: 30px;" :disabled="!dis">
        <el-radio :label="1">合并至已有工单</el-radio>
        <el-radio :label="2" style="margin-left: 30px;">发起新工单</el-radio>
      </el-radio-group>
    </el-form>
  </div>
</template>

<script>
export default {
  // 工单方案
  name: 'workOrder',
  props: {
    value: {
      type: Object,
      default: {},
    },
  },
  computed: {
    form: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
    dis() {
      return this.value?.selectiveWorkOrder?.length > 0
    }
  },
  data() {
    return {
    };
  },
  created() {

  },
  methods: {
  },
};
</script>
<style lang="scss" scoped>
.box {
  width: 100%;
  .title {
    border-left: 3px solid #3280fc;
    padding-left: 5px;
    box-sizing: border-box;
    font-size: 16px;
  }
}
</style>
